package com.itheima.api_date.date;

import java.util.Date;

/**
 * @author Anomaly
 * @date 2022/12/29 16:06
 */
public class DateDemo1 {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
        System.out.println(date.getTime());
        System.out.println(System.currentTimeMillis());
        System.out.println("=================================");
        long time1 = System.currentTimeMillis();
        time1 += (60 * 60 + 121) * 1000;
        Date date1 = new Date(time1);
        System.out.println(date1);
    }
}
